package model

import "gen-code-v2/internal/model/entity"

type GenTableReq struct {
	PageReq
	Group        string
	TableName    string
	TableComment string
}

type TableImportSaveReq struct {
	Group  string
	Tables []string
}

type GenTableDTO struct {
	entity.GenTable
	TreeCode       string                   `json:"treeCode" dc:"树编码字段"`
	TreeParentCode string                   `json:"treeParentCode" dc:"树父编码字段"`
	TreeName       string                   `json:"treeName" dc:"树名称字段"`
	ParentMenuId   string                   `json:"parentMenuId" dc:"上级菜单id"`
	ParentMenuName string                   `json:"parentMenuName" dc:"上级菜单名称"`
	Params         string                   `json:"params" dc:"额外参数"`
	PkColumn       *entity.GenTableColumn   `json:"pkColumn" dc:"主键信息"` //
	SubTable       *GenTableDTO             `json:"subTable" dc:"子表信息"` //
	Columns        []*entity.GenTableColumn `json:"columns" dc:"字段集合"`
}
